package task03;

import java.util.Scanner;

public class Abc {
    public static void main(String[] args) {
        System.out.println("请输入一串字符串:");
        Scanner scanner=new Scanner(System.in);
        String c=scanner.nextLine();

        String temp="";
        for (int i = 0; i < c.length(); i++) {
            temp=temp+c.charAt(c.length()-1-i);
        }
        System.out.println(temp);
    }
}

